package com.demo2do.fms.admin.service.supplier;

import java.util.List;

import com.demo2do.core.entity.page.Page;
import com.demo2do.fms.admin.entity.search.supplier.AppraisalSearch;
import com.demo2do.fms.admin.entity.security.Login;
import com.demo2do.fms.admin.service.DataService;
import com.demo2do.fms.entity.appraisal.Appraisal;

/**
 * 
 * @author houtao
 *
 */
public interface AppraisalService extends DataService<Appraisal> {
    
    /**
     * @param login
     * @return
     */
    public int count(Login login);
    
    /**
     * 
     * @param search
     * @return
     */
    public int count(AppraisalSearch search, Login login);
    
    /**
     * @param login
     * @param page
     * @return
     */
    public List<Appraisal> list(Login login, Page page);
    
    /**
     * 
     * @param appraisalSearch
     * @param page
     * @return
     */
    public List<Appraisal> list(AppraisalSearch appraisalSearch, Login login, Page page);

    /**
     * @param appraisal
     * @param login
     */
    public void create(Appraisal appraisal, Login login);
    
    /**
     * edit appraisal
     * 
     * @param appraisal
     * @param login
     */
    public void edit(Appraisal appraisal, Login login);
    
    /**
     * @param appraisal
     * @param operator
     */
    public void delete(Appraisal appraisal, Long operator);
    
    /**
     * @param appraisal
     * @param operator
     */
    public void sign(Appraisal appraisal, Long operator);
}
